package com.cuijq.counterv3.service;

import com.cuijq.counterv3.entity.RequestInfo;
import java.util.List;
import java.util.Map;

/**
 * @Classname MetricsStorage
 * @Description TODO
 * @Date 2021/4/30 14:07
 * @Created by CuiJQ
 */
public interface MetricsStorage {

  void saveRequestInfo(RequestInfo requestInfo);

  List getRequestInfos(String apiName, long startTimeInMillis, long endTimeInMillis);

  Map<String, List<RequestInfo>> getRequestInfos(long startTimeInMillis, long endTimeInMillis);
}
